package com.ruoyi.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.customer.mapper.ErpBusinessTripRecordsMapper;
import com.ruoyi.customer.domain.ErpBusinessTripRecords;
import com.ruoyi.customer.service.IErpBusinessTripRecordsService;

/**
 * 出差记录核销Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-04
 */
@Service
public class ErpBusinessTripRecordsServiceImpl implements IErpBusinessTripRecordsService 
{
    @Autowired
    private ErpBusinessTripRecordsMapper erpBusinessTripRecordsMapper;

    /**
     * 查询出差记录核销
     * 
     * @param id 出差记录核销主键
     * @return 出差记录核销
     */
    @Override
    public ErpBusinessTripRecords selectErpBusinessTripRecordsById(Long id)
    {
        return erpBusinessTripRecordsMapper.selectErpBusinessTripRecordsById(id);
    }

    /**
     * 查询出差记录核销列表
     * 
     * @param erpBusinessTripRecords 出差记录核销
     * @return 出差记录核销
     */
    @Override
    public List<ErpBusinessTripRecords> selectErpBusinessTripRecordsList(ErpBusinessTripRecords erpBusinessTripRecords)
    {
        return erpBusinessTripRecordsMapper.selectErpBusinessTripRecordsList(erpBusinessTripRecords);
    }

    /**
     * 新增出差记录核销
     * 
     * @param erpBusinessTripRecords 出差记录核销
     * @return 结果
     */
    @Override
    public int insertErpBusinessTripRecords(ErpBusinessTripRecords erpBusinessTripRecords)
    {
        return erpBusinessTripRecordsMapper.insertErpBusinessTripRecords(erpBusinessTripRecords);
    }

    /**
     * 修改出差记录核销
     * 
     * @param erpBusinessTripRecords 出差记录核销
     * @return 结果
     */
    @Override
    public int updateErpBusinessTripRecords(ErpBusinessTripRecords erpBusinessTripRecords)
    {
        return erpBusinessTripRecordsMapper.updateErpBusinessTripRecords(erpBusinessTripRecords);
    }

    /**
     * 批量删除出差记录核销
     * 
     * @param ids 需要删除的出差记录核销主键
     * @return 结果
     */
    @Override
    public int deleteErpBusinessTripRecordsByIds(Long[] ids)
    {
        return erpBusinessTripRecordsMapper.deleteErpBusinessTripRecordsByIds(ids);
    }

    /**
     * 删除出差记录核销信息
     * 
     * @param id 出差记录核销主键
     * @return 结果
     */
    @Override
    public int deleteErpBusinessTripRecordsById(Long id)
    {
        return erpBusinessTripRecordsMapper.deleteErpBusinessTripRecordsById(id);
    }
}
